This is a patch which intends for fixing ltrace problem. When I
execute a command "ltrace ps" on dom0, it makes dom0 hung. It comes
from "break 0x80001" is shared by ltrace(CPL=3) and hpsim(CPL=2).
To avoid this problem, I just add check CPL in ia64_break_fault code.
Signed-off-by: Atsushi SAKAI <sakaia@jp.fujitsu.com>
struct vcpu *v = current;
IA64FAULT vector;
- if (iim == 0x80001 || iim == 0x80002) { //FIXME: don't hardcode constant
+ /* FIXME: don't hardcode constant */
+ if ((iim == 0x80001 || iim == 0x80002)
+ && ia64_get_cpl(regs->cr_ipsr) == 2) {
do_ssc(vcpu_get_gr(current, 36), regs);
}
#ifdef CRASH_DEBUG